package JLB_Chapter_07;

public class Me implements IFather, IMother {
    public void smoking(){
        System.out.println("我喜欢抽烟。");
    }
    public void goFishing() {
        System.out.println("我喜欢钓鱼。");
    }
    public void watchTV() {
        System.out.println("我喜欢看电视。");
    }
    public void cooking() {
        System.out.println("我喜欢做饭。");
    }
    public static void main(String[] args) {
        IFather father = new Me();
        System.out.println("爸爸的爱好：");
        father.smoking();
        father.goFishing();
        IMother mother = new Me();
        System.out.println("\n妈妈的爱好：");
        mother.cooking();
        mother.watchTV();
    }
}
